|
![](/i/fill.gif) |
The same bug seems to be still alive in Pov-Ray for Windows 3.6 beta 4:
First create a file "temp.dat" that has only one numerical value in it
("0", without quotes, newline doesn't matter) in the same directory as
the scene below. When I try to render the scene, I get 'The instruction
at ".." referenced memory at "..". The memory could not be "read"'. This
is the scene:
#declare A = 0;
#macro Read_Data()
#fopen File "temp.dat" read
#read(File, A)
#fclose File
#end
Read_Data()
If the first line (#declare A=0;) is commented out I get the same error
expect '...could not be "written"'.
Now, if I place a comma "," (no quotes) after the "0" in temp.dat the
scene parses normally in both cases.
Interestingly, the next scene renders normally even _without_ the comma
mentioned above - also without the first declaration. The only
difference is that macro is not being used.
#declare A = 0;
#fopen File "temp.dat" read
#read(File, A)
#fclose File
Severi S.
Post a reply to this message
|
![](/i/fill.gif) |